using TerritoryGame.Domain.Entities;

namespace TerritoryGame.Domain.Entities.App
{
    public class Player : EntityBase
    {
        public string Username { get; set; } = string.Empty;
        public string Color { get; set; } = string.Empty; // 玩家涂色使用的颜色
        public int AreaCount { get; set; } = 0; // 玩家占领的面积
        public string? ConnectionId { get; set; } // SignalR连接ID
        public bool IsOnline { get; set; } = true;
        public bool IsReady { get; set; } = false; // 玩家是否已准备
        public DateTime LastSeen { get; set; } = DateTime.UtcNow;
        public List<PaintAction> PaintActions { get; set; } = new(); // 玩家的涂色动作历史
    }
}
